﻿using Microsoft.Extensions.Logging;

namespace K9Nano.Domain
{
    public abstract class K9DomainServiceBase : IDomainService
    {
        protected readonly IUnitOfWork Uow;
        protected readonly ILogger Logger;

        protected K9DomainServiceBase(IUnitOfWork uow, ILoggerFactory loggerFactory)
        {
            Uow = uow;
            Logger = loggerFactory.CreateLogger(this.GetType().Name);
        }
    }
}